<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>文件上传</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8"/>
    <link rel="stylesheet" href="../../../assets/css/font.css">
    <link rel="stylesheet" href="../../../assets/css/xadmin.css">
</head>
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
          <a href="../../index/welcome.html">首页</a>
          <a><cite>系统管理</cite></a>
          <a><cite>文件上传</cite></a>
      </span>
    <a class="layui-btn layui-btn-sm layui-btn-normal" style="line-height:1.6em;margin-top:4px;float:right"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>
<div class="x-body">
    <form class="layui-form" id="searchFrm" lay-filter="searchFrm">
        <div class="layui-inline" >
            <div class="layui-input-inline">
                <input type="text" class="layui-input "  name="name" placeholder="文件名称" />
            </div>
            <button class="layui-btn layui-btn-normal  layui-btn-sm" lay-submit="" lay-filter="searchFilter">
                <i class="layui-icon layui-icon-search"></i>搜索
            </button>
        </div>
        <div class="layui-inline x-search-btn-rigth" >
            <div class="layui-inline" >
                <a class="layui-btn layui-btn-normal layui-btn-sm layui-icon layui-icon-set-sm" id="cloudSet">云存储配置</a>
            </div>
            <div class="layui-inline" >
                <a class="layui-btn layui-btn-normal layui-btn-sm layui-icon layui-icon-upload-drag" id="upload">上传文件</a>
            </div>
            <div class="layui-inline" >
                <a class="layui-btn layui-btn-danger layui-btn-sm layui-icon layui-icon-delete" id="del">删除</a>
            </div>
        </div>
    </form>
    <table class="layui-hide" id="ossTable" lay-filter="ossTableFilter"></table>
</div>
<script type="text/javascript" src="../../../assets/js/lib.js"></script>
<script type="text/javascript" src="ossList.js"></script>
</body>
<div class="x-body" id="cloudSetFormDiv" style="display: none" >
    <form  class="layui-form" action="" id="cloudSetForm">
        <div class="layui-form-item">
            <label class="layui-form-label">存储类型</label>
            <div class="layui-input-block">
                <input type="radio" name="type" value="4" title="本地存储" lay-filter="ossTypeFilter">
                <input type="radio" name="type" value="1" title="七牛" lay-filter="ossTypeFilter" >
                <input type="radio" name="type" value="2" title="阿里云" lay-filter="ossTypeFilter"  >
                <input type="radio" name="type" value="3" title="腾讯云" lay-filter="ossTypeFilter">
            </div>
        </div>
        <div class="layui-form-item local" style="display: none">
            <label class="layui-form-label">存储路径</label>
            <div class="layui-input-block">
                <input type="text" name="localPath"  class="layui-input"/>
            </div>
        </div>

        <div class="layui-form-item aliyun">
            <label class="layui-form-label">域名</label>
            <div class="layui-input-block">
                <input type="text" name="aliyunDomain"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item aliyun">
            <label class="layui-form-label">路径前缀</label>
            <div class="layui-input-block">
                <input type="text" name="aliyunPrefix"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item aliyun">
            <label class="layui-form-label">EndPoint</label>
            <div class="layui-input-block">
                <input type="text" name="aliyunEndPoint"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item aliyun">
            <label class="layui-form-label">AccessKeyId</label>
            <div class="layui-input-block">
                <input type="text" name="aliyunAccessKeyId"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item aliyun">
            <label class="layui-form-label">AccessKeySecret</label>
            <div class="layui-input-block">
                <input type="text" name="aliyunAccessKeySecret"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item aliyun">
            <label class="layui-form-label">BucketName</label>
            <div class="layui-input-block">
                <input type="text" name="aliyunBucketName"  class="layui-input"/>
            </div>
        </div>


        <div class="layui-form-item qiniu" style="display: none">
            <label class="layui-form-label">域名</label>
            <div class="layui-input-block">
                <input type="text" name="qiniuDomain"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qiniu" style="display: none">
            <label class="layui-form-label">路径前缀</label>
            <div class="layui-input-block">
                <input type="text" name="qiniuPrefix"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qiniu" style="display: none">
            <label class="layui-form-label">AccessKey</label>
            <div class="layui-input-block">
                <input type="text" name="qiniuAccessKey"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qiniu" style="display: none">
            <label class="layui-form-label">SecretKey</label>
            <div class="layui-input-block">
                <input type="text" name="qiniuSecretKey"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qiniu" style="display: none">
            <label class="layui-form-label">BucketName</label>
            <div class="layui-input-block">
                <input type="text" name="qiniuBucketName"  class="layui-input"/>
            </div>
        </div>

        <div class="layui-form-item qcloud" style="display: none">
            <label class="layui-form-label">域名</label>
            <div class="layui-input-block">
                <input type="text" name="qcloudDomain"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qcloud" style="display: none">
            <label class="layui-form-label">路径前缀</label>
            <div class="layui-input-block">
                <input type="text" name="qcloudPrefix"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qcloud" style="display: none">
            <label class="layui-form-label">AppId</label>
            <div class="layui-input-block">
                <input type="text" name="qcloudAppId"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qcloud" style="display: none">
            <label class="layui-form-label">SecretId</label>
            <div class="layui-input-block">
                <input type="text" name="qcloudSecretId"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qcloud" style="display: none">
            <label class="layui-form-label">SecretKey</label>
            <div class="layui-input-block">
                <input type="text" name="qcloudSecretKey"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qcloud" style="display: none">
            <label class="layui-form-label">BucketName</label>
            <div class="layui-input-block">
                <input type="text" name="qcloudBucketName"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item qcloud" style="display: none">
            <label class="layui-form-label" style="">Bucket所属地区</label>
            <div class="layui-input-block">
                <input type="text" name="qcloudRegion"  class="layui-input" placeholder="如：sh（可选值 ，华南：gz 华北：tj 华东：sh）"/>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="" lay-filter="cloudSetFormSubmitFilter">保存</button>
                <button type="button" id="colseBtnFilter" class="layui-btn layui-btn-primary layui-btn-sm"  >取消</button>
            </div>
        </div>
    </form>
</div>
</html>
